#include <stdio.h>
#include <stdlib.h>
#include <wiringPi.h>  
#include "iic_soft.h"
#include "iic_oled.h"
#include "iic_oled_clock.h"
#include "cpu_info.h"
int main(void) {
    printf("Hello world !\n");
    // //初始化
    if (wiringPiSetup() == -1)
        exit(1);

    // iic_oled_init();

    // iic_oled_printf("Hello World!");



    // printf("cpu_temp: %s\n", cpu_get_temp());
    // printf("cpu_time: %s\n", cpu_get_time());
    // printf("cpu_date: %s\n\n", cpu_get_date());
    // printf("cpu_num: %d\n", cpu_get_num());

    // iic_oled_clock_init();

    pinMode(SCL, OUTPUT);

    uint32_t time_start = millis();


    //1000ms 执行 1000 000 次
    //100MHZ -> 100Mbps -> 12.5MBPS
    //

    // for (size_t i = 0; i < 1000000; i++)
    // {
    //     SCL_HIGH;
    //     // SCL_LOW;
    // }
    // printf("DTime:%d", millis() - time_start);



    while (1)
    {
        delayMicroseconds(900);
        iic_oled_clock_set_time(millis());
    }


    return 0;
}